package com.arrogames.rgblabyrinth.game.trigger {
	import flash.geom.Point;

	public class Trigger {

		private var begin:Point;
		private var end:Point;
		
		public function Trigger(begin:Point, end:Point) {
			this.end = end;
			this.begin = begin;
		}
		
		public function isInside(x:Number, y:Number):Boolean {
			var result:Boolean = false;
			if (x >= begin.x && x <= end.x) {
				if (y >= begin.y && y <= end.y) {
					result = true;
				}
			}
			return result;
		}

	}
}